﻿// -----------------------------------------------------------------------
// <copyright file="BooksListViewModel.cs" company="EPAM Systems">
////Copyright (c) EPAM Systems, 2012. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace MBOP.Website.ViewModels.Library
{
	#region Usings

	using System.Collections.Generic;

	using MBOP.Core.Entities.Common;
using MBOP.Core.Entities.Library;

	#endregion

	/// <summary>
	/// Represents view model for current book's page.
	/// </summary>
	public class BooksListViewModel
	{
		/// <summary>
		/// Gets or sets the books for the current page.
		/// </summary>
		public IEnumerable<BookViewModel> Books { get; set; }

		/// <summary>
		/// Gets or sets the books current page.
		/// </summary>
		public int CurrentPage { get; set; }

		/// <summary>
		/// Gets or sets the books current filter.
		/// </summary>
		public FilterType CurrentFilter { get; set; }

		/// <summary>
		/// Gets or sets the sort info.
		/// </summary>
		public SortInfo CurrentSortInfo { get; set; }

		/// <summary>
		/// Gets or sets the total number of pages.
		/// </summary>
		public int PagesTotal { get; set; }

		/// <summary>
		/// Gets or sets the allowed image formats.
		/// </summary>
		public string AllowedImageFormats { get; set; }
	}
}